<?php


namespace app\api\controller;


use app\api\service\QrCode;
use app\api\validate\QrValidate;

class Qr extends BaseApi {

    public function getQrCode(){
	    $qrValidate = new QrValidate();
	    $validateRes = $qrValidate->goSceneCheck('verifyToken');
	    if (is_array($validateRes) && array_key_exists('code', $validateRes)) {
		    return error($validateRes['msg']);
	    }
        $qr = new QrCode();
        $result = $qr->getBaseCode();

	    return $result;
    }


}